<%-- 
    Document   : listaDocumentosExpediente
    Created on : 14/09/2010, 04:50:38 PM
    Author     : Home
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page import="pe.gob.pnp.despachadores.*" %>
<%@ page import="pe.gob.pnp.actions.*" %>
<%@ page import="java.util.*"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:useBean id="expediente" class="pe.gob.pnp.actions.ExpedienteBean" scope="request"/>
<jsp:setProperty name="expediente" property="*"/>
<%
    List<FolioBean> folios = ExpedienteDespachador.obtenerDocumentosExpedientePNP(expediente);
    pageContext.setAttribute("folios", folios);
%>
{
    documentos:

    [
    <c:set var="i" value="0"/>
    <c:forEach var="folio" items="${folios}">
        ${i>0 ? "," : ""}
        {
            idfolio: "${folio.id}",
            nrofolios: "${folio.pagina}",
            idDocumento: "${folio.documento.id}",
            descripcionDocumento: "${folio.documento.descripcion}"
        }
        <c:set var="i" value="${i+1}"/>
    </c:forEach>
    ]
}
